<?php

namespace App\Admin\Actions\Course;

use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;

class Lesson extends RowAction
{
    public $name = '课时';

    // public function handle(Model $model)
    // {
    //     // $model ...

    //     return $this->response()->success('Success message.')->refresh();
    // }
    public function href()
    {
        return "/admin/lessons?course_id={$this->getKey()}";
    }
}